home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / shells / scsh-0.4 / scsh-0 / scsh-0.4.2 / scsh / sunos / signals.scm < prev    next >
Text File  |  1995-10-13  |  1KB  |  36 lines

  1. ;;; Signal constant definitions for Sun4
  2. ;;; Copyright (c) 1994 by Olin Shivers.
  3.  
  4. (define-syntax define-signals
  5.   (syntax-rules ()
  6.     ((define-signals form ...)
  7.      (begin (define-enum-constant "signal" . form) ...))))
  8.  
  9. ;;POSIX only defined here, couldn't find signal.h for Sun4 -dalbertz
  10.  
  11. (define-signals
  12.   ;; POSIX
  13.   (hup    1)    ; hangup 
  14.   (int    2)    ; interrupt 
  15.   (quit    3)    ; quit 
  16.   (ill    4)    ; illegal instruction (not reset when caught) 
  17.   (iot    6)    ; IOT instruction 
  18.   (abrt 6)    ; used by abort, replace SIGIOT in the future 
  19.   (fpe    8)    ; floating point exception 
  20.   (kill    9)    ; kill (cannot be caught or ignored) 
  21.   (segv    11)    ; segmentation violation
  22.   (pipe    13)    ; write on a pipe with no one to read it 
  23.   (alrm    14)    ; alarm clock 
  24.   (term    15)    ; software termination signal from kill 
  25.   (stop    17)    ; sendable stop signal not from tty 
  26.   (tstp    18)    ; stop signal from tty 
  27.   (cont    19)    ; continue a stopped process 
  28.   (chld    20)    ; to parent on child stop or exit 
  29.   (cld    20)    ; System V name for SIGCHLD
  30.   (ttin    21)    ; to readers pgrp upon background tty read 
  31.   (ttou    22)    ; like TTIN for output if (tp->t_local<OSTOP) 
  32.   ;; User defined
  33.   (usr1 30)    ; user defined signal 1 
  34.   (usr2 31)    ; user defined signal 2 
  35.   )
  36.